package com.xnyzc.lhy.common.penum.cms;

public enum ERulesConditions {

    or(0, "或"),
    with(1, "与");

    public static ERulesConditions find(Integer type) {
        ERulesConditions eDriverType;
        switch (type) {
            case 0:
                eDriverType = ERulesConditions.or;
                break;
            case 1:
                eDriverType = ERulesConditions.with;
                break;
            default:
                throw new IllegalArgumentException("未设置");
        }
        return eDriverType;
    }

    private Integer value;
    private String desc;

    ERulesConditions(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
}
